package com.googlecode.dgwt.client.dijit;

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.dgwt.client.dijit.layout.LayoutWidget;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class Container extends LayoutWidget {

    
    protected Container(boolean ready) {
        super(ready);
    }


    public Container() {
        super(Document.get().createDivElement());
    }

    
    public Container(String html) {
        super(false);
        HTML.loadFromHTML(this, html, "div");
        postCreate();
    }

    
    public Container(Element element) {
        super(element);
    }

    
    public void insert(Widget child, int beforeIndex) {
        super.insert(child, getContainerElement(), beforeIndex, true);
    }

}
